package com.itheima.health;

import com.itheima.health.dao.OrderSettingDao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;
import java.util.Map;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:applicationContext-dao.xml")
public class testMap {

    @Autowired
    OrderSettingDao orderSettingDao;

    @Test
    public void test(){
        List<Map> list = orderSettingDao.test("2019-12");
        for (Map map : list) {
            System.out.println(map);
        }
    }
}
